<% className = @welcome_page ? "dialog" : "panel" -%>

<% form_tag session_path, :id => "session_form", :class => className do %>

  <fieldset>
    <div class="row"><label for="username">Username</label>
    <%= text_field_tag 'username' %></div>

    <div class="row">
      <label for="password">Password</label>
      <%= password_field_tag 'password' %>
    </div>

    <div class="row">
      <label>Remember Me</label>
      <div class="toggle" onclick="if (document.getElementById('remember_me').checked) { document.getElementById('remember_me').checked = ''; } else { document.getElementById('remember_me').checked = 'checked'; }" toggled="false">
        <span class="thumb"></span>
        <span class="toggleOn">ON</span>
        <span class="toggleOff">OFF</span>
      </div>
      <div style="display: none;"><%= check_box_tag 'remember_me' %></div>
	</div>
  </fieldset>

  <p>
    <%= link_to 'Log in', "#", {:type => "submit", :class => "whiteButton"} %>
  </p>

<% end %>
